package com.haoyeteng.sxbd.modular.business.service;

import com.haoyeteng.sxbd.modular.business.model.Contract;
import com.haoyeteng.sxbd.modular.business.model.OrderDtl;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.http.ResponseEntity;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 * 合同管理 服务类
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-10-04
 */
public interface IContractService extends IService<Contract> {

	/**
	 * 导出pdf
	 * @return
	 */
	ResponseEntity<?> exportPdf(Contract contract, List<OrderDtl> orderDtlList);

	/**
	 * 分页查询我的合同管理
	 * @param page
	 * @param contractStatus
	 * @param contractNo
	 * @param userId
	 * @return
	 */
	List<Map<String, Object>> selectMyContractList(Page<Contract> page, String contractStatus, String contractNo,
			Integer userId);

	/**
	 * 分页查询合同管理
	 * @param page
	 * @param contractStatus
	 * @param contractNo
	 * @param orderId
	 * @param applyTime
	 * @return
	 */
	List<Map<String, Object>> selectContractList(Page<Contract> page, String contractStatus, String contractNo,
			String orderId, String applyTime);

}
